package org.spring.springboot.app.user.sysuser.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import org.hibernate.validator.constraints.NotBlank;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: eric
 * Date: 2017-11-09
 * Time: 19:37
 */
@ApiModel(description="修改密码参数")
public class UserPasswordVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "原密码",hidden = false)
    @NotBlank(message="旧密码必须填写")
    public String password;
    @ApiModelProperty(value = "新密码",hidden = false)
    @NotBlank(message="新密码不能为空")
    public String newPassword;

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
